<?php

namespace app\common\validate;

class StoreCardValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'id'          => '',
        'card_name'   => '里程卡名称',
        'content'     => '使用规则',
        'store_id'    => '门店ID',
        'create_time' => '',
        'update_time' => '',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'getstoreCardPage' => [],
        'getstoreCardList' => [],
        'setstoreCardItem' => [
            'id'                      => 'require',
            "card_name"               => "require",
            "content"                 => "require",
            "use_rule"                 => "require",
            "status"                  => "require",
            "store_card_commission"   => 'require',
            "store_card_give_setting" => 'require',
        ],
        'addstoreCardItem' => [
            "card_name"               => "require",
            "content"                 => "require",
            "use_rule"                 => "require",
            "status"                  => "require",
            "store_card_commission"   => 'require',
            "store_card_give_setting" => 'require',
        ],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
